package quiz10;

/**
 * Created by xujc on 7/14/15.
 */
public class Clock {
    private int second;
    private int minute;
    private int hour;

    public Clock(int second, int minute, int hour) {
        this.second = second;
        this.minute = minute;
        this.hour = hour;
    }

    public void show(){
        StringBuilder builder=new StringBuilder();
        builder.append(hour);
        builder.append(':');
        builder.append(minute);
        builder.append(':');
        builder.append(second);
        String s = builder.toString();
        System.out.println(s);
    }
}
